import service from "@/utils/request";

export function getAnnouncementListService(params) {
  return service({
    url: "/announcement/list",
    method: "get",
    params,
  });
}

export function getAnnouncementDetailService(announcementId) {
  return service({
    url: "/announcement/detail",
    method: "get",
    params: { announcementId },
  });
}
export function preAnnouncementService(announcementId) {
  return service({
    url: "/announcement/preAnnouncement",
    method: "get",
    params: { announcementId },
  });
}
export function nextAnnouncementService(announcementId) {
  return service({
    url: "/announcement/nextAnnouncement",
    method: "get",
    params: { announcementId },
  });
}
